// 请求参数
export type ShopProductionLoadParams = SearchParams & PageCommonParams;

export interface SearchParams {
    workshopCode: string;
    workshopName: string;
    dateRange: {
        start: string;
        end: string;
    };
    exportedIds?: number[];
}

// 响应参数
export interface ShopProductionLoadResponse {
    header: string[];
    rows: ShopProductionLoad;
}

export type ShopProductionLoad = ResponseListCommon<ShopProductionLoadProp>;

export interface ShopProductionLoadProp {
    workshopCode: string;
    workshopName: string;
    workshopId: number;
    dailyStatisticsMap: {
        [key: string]: DailyStatisticsMap;
    };
}

export interface DailyStatisticsMap {
    scheduledEquipmentCnt: number;
    unscheduledEquipmentCnt: number;
    plannedCnt: number;
    completedCnt: number;
    productionSchedule: number;
    associatedOrderCnt: number;
    statDate: string;
}
